package com.woody.aggregate.sdk.messagebox;

import com.woody.aggregate.messagebox.vo.MessageboxInfoVO;
import com.woody.base.model.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="wd-aggregate", contextId = "aggregate-c-MessageboxFeign", path = "/messagebox")
public interface MessageboxCFeign {

    /**
     * 获取弹框信息
     * @param shopId 店铺id
     * @param client 客户端:惠盟小程序,惠盟APP
     * @return
     */
    @GetMapping("/c/messageboxInfo")
    Response<List<MessageboxInfoVO>> messageboxInfo(@RequestParam(value = "bizId") Long bizId,
                                                    @RequestParam(value = "client") String client);

}
